package io.adrainty.bolee.framework.commons.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.adrainty.bolee.framework.commons.basic.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/5 上午12:59
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "部门职位用户关联")
public class DeptPostUserEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 7177207782766563694L;

    @Schema(description = "用户ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    @Schema(description = "部门编号")
    private String deptNo;

    @Schema(description = "岗位编码")
    private String postNo;

    @Schema(description = "企业编号")
    private String companyNo;

}
